/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-05-23 10:51:54
 * @LastEditTime: 2021-05-23 11:46:49
 */

import Observer from './Observer'

export default function observe(value) {
    if (typeof value != 'object') return;

    let ob = null;
    if (typeof value.__ob__ !== 'undefined') {
        ob = value.__ob__;
    } else {
        ob = new Observer(value);
    }
    return ob;

}

